package org.su.generalmvc.config;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamOmitField;

/**
 * xssh配置包，同struts2 一样，xssh的核心配置和也是由包开始
 * @author yangchuan createtime:2012-4-24上午10:13:25
 *
 */
public class PackageConfig {
	
	/**
	 * 包名称，用户表示一个包配置，
	 */
	@XStreamOmitField
	@XStreamAsAttribute
	private String name;
	
	/**
	 * 命名空间，action包的前缀，和controller对象存储的前缀
	 */
	@XStreamOmitField
	@XStreamAsAttribute
	private String namespace;
	
	/**
	 * 指定action请求默认的视图页面父目录
	 */
	@XStreamOmitField
	@XStreamAsAttribute
	@XStreamAlias("view-directory")
	private String viewdir;

	/**
	 * 指定当前继承于那个包，值为父亲包的name值
	 */
	@XStreamOmitField
	@XStreamAsAttribute
	private String extend;
	
	/**
	 * 指定当前包配置作用于那个java代码包，即对应的控制器都遵循这个包配置规则
	 */
	@XStreamOmitField
	@XStreamAsAttribute
	@XStreamAlias("role-in")
	private String roleIn;
	
	public String getRoleIn() {
		return roleIn;
	}

	@XStreamOmitField
	@XStreamAsAttribute
	@XStreamAlias("action-suffix")
	private String actionSuffix;
	
	public String getActionSuffix() {
		return actionSuffix;
	}

	@XStreamOmitField
	private InterceptorMapping interceptors;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getExtend() {
		return extend;
	}

	public String getNamespace() {
		return namespace;
	}

	public void setNamespace(String namespace) {
		this.namespace = namespace;
	}

	public InterceptorMapping getInterceptors() {
		return interceptors;
	}

	public String getViewdir() {
		return viewdir;
	}
	

	
	
	
}
